//
//  MoreViewTableViewCell.m
//  享动
//
//  Created by darker on 16/4/15.
//  Copyright © 2016年 HHUI. All rights reserved.
//

#import "MoreViewTableViewCell.h"

@interface MoreViewTableViewCell ()

// 每个row的label 箭头图标
@property (nonatomic, strong) UIImageView *rowImageView;

@property (nonatomic, strong) UIImageView *rightImageView;

@end

@implementation MoreViewTableViewCell

- (instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        _label = [[UILabel alloc] initWithFrame:CGRectMake(40, 5, 150, 40)];
        _rowImageView = [[UIImageView alloc] initWithFrame:CGRectMake(15, 18, 15, 15)];
        _rightImageView = [[UIImageView alloc] initWithFrame:CGRectMake(KWIDTH - 20, 15, 10, 15)];
        
        _rowImageView.image = [UIImage imageNamed:@"u40"];
        _rightImageView.image = [UIImage imageNamed:@"下键2_u21"];
        _label.textColor = [UIColor grayColor];
        _label.font = [UIFont systemFontOfSize:14];
        
        _rightLabel = [[UILabel alloc] initWithFrame:CGRectMake(KWIDTH - 70, 5, 50, 30)];
        _rightLabel.textColor = [UIColor colorWithRed:244 / 255.0 green:120 / 255.0 blue:157 / 255.0 alpha:1];
        _rightLabel.font = [UIFont systemFontOfSize:14];
        
        [self.contentView addSubview:_rightLabel];
        [self.contentView addSubview:_label];
        [self.contentView addSubview:_rowImageView];
        [self.contentView addSubview:_rightImageView];
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
